<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>日历</title>
  <link rel="stylesheet" type="text/css" href="./Css/common/reset.css">
  <link rel="stylesheet" type="text/css" href="./Css/common/vant.css">
  <link rel="stylesheet" type="text/css" href="./Css/common/iconfont.css">
  <link rel="stylesheet" type="text/css" href="./Css/Calendar.css">
</head>

<body>
  <div id="app">
    <div class="header">
      <span class="iconfont back">&#xe604;</span>
      <span class="title">日历</span>
    </div>

    <!-- 日历 -->
    
    <div class="calendar-wrapper">
      <div class="calendar-table">
        <ul class="title">
          <li>日</li>
          <li>一</li>
          <li>二</li>
          <li>三</li>
          <li>四</li>
          <li>五</li>
          <li>六</li>
        </ul>
        
        <div class="currentDate">
          {{ selectedMonthDate.split('-')[0] }} 年 {{ selectedMonthDate.split('-')[1] }} 月 
        </div>
        <ul v-for="item of curMonthArr" v-bind:key="item.id" class="content-row">
          <li v-on:click="selectedDaysClickEvent($event)" v-for="childItem of item" v-bind:key="childItem.id">
            <span class="day">{{ childItem.day }}</span>
            <span class="tag">{{ childItem.price }}</span>
            <span v-if="childItem.state" class="state">{{ childItem.state }}</span>
            <span v-if="childItem.cur" class="cur">{{ childItem.cur }}</span>
          </li>
        </ul>
      </div>
    </div>
    <div class="btn">
      <span v-on:click="prevMonthBtn" class="prevMonthBtn">上个月</span>
      <span v-on:click="nextMonthBtn" class="nextMonthBtn">下个月</span>
    </div>
  </div>
  <script src="./Scripts/common/vue.min.js"></script>
  <script src="./Scripts/common/vant.min.js"></script>
  <script src="./Scripts/common/moment.js"></script>
  <script src="./Scripts/Calendar.js"></script>
</body>

</html>